package com.example.task.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 陈建峰
 * @date 2022/10/31 14:28
 * @Description 执行事件对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("zdy_event_info")
public class EventEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    //事件名称
    @TableField("body_name")
    private String bodyName;


    //类型
    @TableField("type")
    private Integer type;

    //发起人
    @TableField("people")
    private String people;

    //执行状态
    @TableField("status")
    private Integer status;

    //开始时间
    @TableField("start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    //结束时间
    @TableField("end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @TableField("other_id")
    private Long otherId;

}
/*
工作流整体内容

 */